package com.hp.service.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.hp.bean.Area;
import com.hp.bean.HouseInfo;
import com.hp.bean.UserInfo;
import com.hp.mapper.HouseInfoMapper;
import com.hp.service.UserService;
@Service
public class UserServiceImpl implements UserService{
   @Resource
   private HouseInfoMapper houseInfoMapper; 
	@Override
	public List<HouseInfo> selectHouseAll() {
		return houseInfoMapper.selectAll();
	}

	@Override
	public HouseInfo selectHouseOne(int hid) {
		return houseInfoMapper.selectOne(hid);
	}

	@Override
	public void updateHouseOne(HouseInfo hi) {
		houseInfoMapper.updateOne(hi);
	}

	@Override
	public UserInfo selectUser(String uname, String psw) {
		return houseInfoMapper.selectUser(uname, psw);
	}

	@Override
	public List<Area> selectAreaALL() {
		return houseInfoMapper.selectAreaALL();
	}

	@Override
	public void insertOne(HouseInfo hi) {
		houseInfoMapper.insertOne(hi);
	}
 
	
}
